<?php
/**
 * User: hjd-yao
 * Date: 2019/5/8
 * Time: 9:42
 */

namespace App\Helpers;


class AppSecret
{
    const SECRET_KEY = 'Iy/LCEH4ARKn5wCkCWJ4N7f19XqadKzRhGEvme7hew8=';
    public static function make()
    {
        return new static();
    }

    public function create($token,$time)
    {
        $secret = sha1($token.self::SECRET_KEY.$time);
        return $secret;
    }
}